Skip to content

Improvement: fix actuator test on uavcan ESCs that consume ArmingStatus#26255

Merged
dakejahl merged 3 commits intomainfrom
maetugr/uavcan-motor-test
Jan 13, 2026
Merged

Improvement: fix actuator test on uavcan ESCs that consume ArmingStatus#26255
dakejahl merged 3 commits intomainfrom
maetugr/uavcan-motor-test

Conversation

@MaEtUgR
Copy link
Copy Markdown
Member

@MaEtUgR MaEtUgR commented Jan 12, 2026

Solved Problem

When using UAVCAN motors that arm themselves by looking at the vehicles armed state published in the ArmingStatus DroneCAN message:
https://github.com/dronecan/DSDL/blob/04e0e818b06c180eb1720fcdf16484d0f12895ee/uavcan/equipment/safety/1100.ArmingStatus.uavcan#L6-L9
then the motors do not spin when using the actuator test sliders in the QGC Actuators tab at the bottom. This is reportedly and I agree with that report bad user experience because the motors seem to not work in tests without feedback but then turn when arming the vehicle.

Solution

This pull request publishes the vehicle to be armed when an actuator test is running such that the ESCs waiting for armed status can be tested.

Changelog Entry

Improvement: fix actuator test on uavcan ESCs that consume `ArmingStatus`

Alternatives

This could be solved at a more global level where the vehicle is considered armed when testing actuators but I didn't want to open that architectural rabbit hole to fix the user experience.

There is no defined test state, only "fully armed" in the DSDL definition.

Test coverage

I tested this with Vertiq ESCs hooked up over uavcan with the default configuration of enabling motor control only when ArmingStatus.status reports STATUS_FULLY_ARMED.

@MaEtUgR MaEtUgR requested a review from Claudio-Chies January 12, 2026 18:07
@MaEtUgR MaEtUgR self-assigned this Jan 12, 2026
@dakejahl
Copy link
Copy Markdown
Contributor

Nice clean fix

Copy link
Copy Markdown
Member

@Claudio-Chies Claudio-Chies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a sensible approach. Thanks!

@dakejahl dakejahl merged commit 473ef5f into main Jan 13, 2026
74 of 76 checks passed
@dakejahl dakejahl deleted the maetugr/uavcan-motor-test branch January 13, 2026 19:57
TheLukaDragar pushed a commit to TheLukaDragar/PX4-Autopilot that referenced this pull request Feb 24, 2026
…tus` (PX4#26255)

* uavcan esc: remove unused includes

* uavcan arming_status: disarm when terminated

To stay consistent with kill.

* uavcan: publish armed during actuator tests to make it possible spinning motors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants